'use strict'

const Router = require('koa-router')

const router = new Router({
  prefix: '/v1',
})

router.get('/', async ctx => {
  ctx.body = {
    message: 'API Endpoint',
  }
})

// api for centification to upload idcard image
router.all('/upload', async ctx => {
  ctx.set('Access-Control-Allow-Origin', '*')
  ctx.set('Access-Control-Allow-Headers', 'Content-Type, Access-Control-Allow-Headers, Authorization, X-Requested-With')
  ctx.body = {
    message: 'todo',
  }
})

module.exports = router